package com.example.server.common.constant;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用户登录返回统一参数
 *
 * @author china.fuyao@outlook.com
 * @date 2020-04-14 17:14
 */

@ApiModel("统一返回结果")
@Data
public class LoginResult {

    @ApiModelProperty("用户id")
    private Integer customerId;
    @ApiModelProperty("用户名称")
    private String customerName;
    @ApiModelProperty("手机号")
    private String phone;
    @ApiModelProperty("角色id")
    private Integer roleId;
    @ApiModelProperty("是否需要绑定手机号")
    private Integer needBindPhone = 1;
    @ApiModelProperty("token")
    private String token;
    @ApiModelProperty("issuer")
    private String issuer;
}
